package com.zzyl.mapper;

import com.github.pagehelper.Page;
import com.zzyl.entity.Member;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

@Mapper
public interface MemberMapper {

    //查询微信用户信息
    Member selectWechatUser(String openid);

    //更新微信用户信息
    void updateWechatUser(Member member);

    //新增微信用户信息
    void insertWechatUser(Member member);

    //查询微信登录用户信息
    Member selectWechatUserById(@Param("id") Long id);

    Page<List<Member>> page(@Param("phone") String phone, @Param("name") String name);

    Member selectById(Long id);
}
